﻿@model IEnumerable<BulletinModel.Feedback>

<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.raty.js")" type="text/javascript"></script>
@*<script type="text/javascript">
    $(function () {
        $('#star').raty(
            {
                path: "../../Content/StarImg",
                starHalf:'star-half-big.png',
                readOnly: true,
                showHalf: true,
                score: '@ViewData["AverageStarValue"]'
            }
            );

            })
   </script>*@
<script>
    $(document).ready((function () {
    //    $(".nonejscommentlist").hide();
    }))
 </script>

<table style="display:none;">
    <tr>
        <th  colspan="2">
     评价详细列表
       </th>

         @if (User.Identity.Name != "") 
      { 
        <th>操作</th>}
    </tr>
     
@foreach (var item in Model)
{   
       
     <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TextValue)
        </td>
        <td>
         <div class="nonejscommentlist">
             星级:
                 @for (int i = 1; i <=item.StarValue; i++)
                     { 
                     <img src="../../Content/StarImg/star-on.png" />
                  }
                </div>
      <script type="text/javascript">
         $(function () {
             $('#@item.ID').raty(
               {
                path: "../../Content/StarImg",
                starHalf: 'star-half-big.png',
                readOnly: true,
                showHalf: true,
                score: '@item.StarValue'
              }
              );
              })
                </script>
              星级：<div id="@item.ID"></div>
        </td>
          @if (User.Identity.Name != "") 
      { 
         <td>@Html.ActionLink("删除", "DeleteCommentByID", new {ID=item.ID,projectSN=ViewData["projectSN"] ,BulletinYaMa=ViewData["BulletinYaMa"],YeMa=ViewData["YeMa"] })</td>
          }
    </tr>
}
</table>
  <span>&#8195;&#8195;@Html.ActionLink("查看更多评论", "GetAllComment", new {projectSN=ViewData["projectSN"],BulletinYaMa=ViewData["BulletinYaMa"],YeMa=ViewData["YeMa"] })</span>

@*div class="nonejscommentlist">
    <div>
    @for (int i = 1; i < item.StarValue; i++)
    { 
        <img src="../../Content/StarImg/star-on-big.png" />
    }
</div>



</div>*@